package com.pojo.system;

public class PSWDPk  implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;
	protected int hashCode = Integer.MIN_VALUE;
	private java.lang.String usr;
	private java.lang.String compno;
	
	public PSWDPk () {}
	
	public PSWDPk (
		java.lang.String usr,
		java.lang.String compno) {

		this.setUsr(usr);
		this.setCompno(compno);
	}

	public java.lang.String getUsr() {
		return usr;
	}

	public void setUsr(java.lang.String usr) {
		this.usr = usr;
	}

	public java.lang.String getCompno() {
		return compno;
	}

	public void setCompno(java.lang.String compno) {
		this.compno = compno;
	}
	
	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.pojo.system.PSWDPk)) return false;
		else {
			com.pojo.system.PSWDPk mObj = (com.pojo.system.PSWDPk) obj;
			if (null != this.getUsr() && null != mObj.getUsr()) {
				if (!this.getUsr().equals(mObj.getUsr())) {
					return false;
				}
			}
			else {
				return false;
			}
			if (null != this.getCompno() && null != mObj.getCompno()) {
				if (!this.getCompno().equals(mObj.getCompno())) {
					return false;
				}
			}
			else {
				return false;
			}
			return true;
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			StringBuilder sb = new StringBuilder();
			if (null != this.getUsr()) {
				sb.append(this.getUsr().hashCode());
				sb.append(":");
			}
			else {
				return super.hashCode();
			}
			if (null != this.getCompno()) {
				sb.append(this.getCompno().hashCode());
				sb.append(":");
			}
			else {
				return super.hashCode();
			}
			this.hashCode = sb.toString().hashCode();
		}
		return this.hashCode;
	}
}
